package com.xjn.updatetool.util;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

/**
 * @author lilin
 * @create 2020-07-30 15:19
 **/
public class TimeUtils {
    public static java.util.Date stringToDateyyyyMMddHHmmss(String str) throws Exception {
        DateFormat formatter = new SimpleDateFormat("yyyyMMddHHmmss");
        return (java.util.Date) formatter.parse(str);
    }
}
